Package org.dogtagpki.client
Class JSSSocketFactory
java.lang.Object
org.dogtagpki.client.JSSSocketFactory
- All Implemented Interfaces:
org.apache.http.conn.socket.ConnectionSocketFactory
,org.apache.http.conn.socket.LayeredConnectionSocketFactory
public class JSSSocketFactory
extends Object
implements org.apache.http.conn.socket.LayeredConnectionSocketFactory
This class provides a ocket factory for PKIConnection based on JSSSocket.
JSSSocket support both communication models: sync and async. The model is
defined in the initial socket and if not specified it is sync.
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionconnectSocket
(int connTimeout, Socket socket, org.apache.http.HttpHost host, InetSocketAddress remoteAddress, InetSocketAddress localAddress, org.apache.http.protocol.HttpContext context) createLayeredSocket
(Socket socket, String remoteHost, int port, org.apache.http.protocol.HttpContext context) createSocket
(org.apache.http.protocol.HttpContext arg0)
-
Field Details
-
logger
public static org.slf4j.Logger logger
-
-
Constructor Details
-
JSSSocketFactory
-
-
Method Details
-
createSocket
- Specified by:
createSocket
in interfaceorg.apache.http.conn.socket.ConnectionSocketFactory
- Throws:
IOException
-
createLayeredSocket
public Socket createLayeredSocket(Socket socket, String remoteHost, int port, org.apache.http.protocol.HttpContext context) throws IOException, UnknownHostException - Specified by:
createLayeredSocket
in interfaceorg.apache.http.conn.socket.LayeredConnectionSocketFactory
- Throws:
IOException
UnknownHostException
-
connectSocket
public Socket connectSocket(int connTimeout, Socket socket, org.apache.http.HttpHost host, InetSocketAddress remoteAddress, InetSocketAddress localAddress, org.apache.http.protocol.HttpContext context) throws IOException, UnknownHostException - Specified by:
connectSocket
in interfaceorg.apache.http.conn.socket.ConnectionSocketFactory
- Throws:
IOException
UnknownHostException
-